package com.example.it.presenter;

import com.example.it.View.TabView;
import com.example.it.base.BasePresenter;
import com.example.it.bean.ChapterTabBean;
import com.example.it.model.TabCallBack;
import com.example.it.model.TabModel;

public class TabPresenter extends BasePresenter<TabView> implements TabCallBack {
    private TabModel model;
    @Override
    protected void initModel() {
        this.model=new TabModel();
        addModel(model);
    }
    public void getdata(){
        model.addModel(this);
    }
    @Override
    public void onSuccess(ChapterTabBean data) {
        mview.onSuccess(data);
    }

    @Override
    public void onFali(String error) {
        mview.onFali(error);
    }
}
